package com.dao;

import com.entity.PromotionUserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface TranslationDao {

    int findUser(@Param("userId")Integer userId);

    int findUserPid(@Param("userId")Integer userId);

    int insertPid(@Param("userId")Integer userId,@Param("pid")Integer pid);

    String findPidUserType(@Param("pid")Integer pid);

    int insertPromotionUser(@Param("userId")Integer userId,@Param("pid")Integer pid,@Param("type")Integer type);



    int insertMoney(@Param("pid")Integer pid,@Param("date")Date date,@Param("endTime") Date endTime);

    List<PromotionUserInfo> findDetails(@Param("userId") Integer userId,@Param("limit") Integer limit);

    //int findYiJi(@Param("userId") Integer userId,@Param("type") Integer type);

    int findteacherCount(@Param("userId") Integer userId);

    int studentCount(@Param("userId")Integer userId);
}
